virtual hosts help please

virtual hosts help please

am 25.01.2010 21:28:45 von Chris Hall

--0023545bd89c457c6d047e0305f5
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I run a cpanel machine with the following versions:

cPanel 11.25.0-R42404
WHM 11.25.0 - X 3.9
CENTOS 4.7 i686
Apache 2.0.63


We have a client that is running a real estate website using a product from
Transparent Rets that connects and downloads a MLS (real estate) feed to
display on their site.

Transparent Rets has recommended we set the Apache timeout on this site to
10000 seconds.

Needless to say I do not want to set this for every site, so I wanted to try
to use a virtual host directive for this.

I found a few automatically generated virtual host directives on my server
in the /etc/httpd/conf/sites directory so I copied one of those and added
the time out.

First, if anyone could review my attempt to make a virtual host directive I
would *GREATLY* appreciate it.

Second, is there any way to verify the timeout has been increased for this
site, and only this site?


Here is the contents of the file. I have used xxxx's for privacy





DocumentRoot /home/xxxx/public_html
Port 80
DirectoryIndex index.htm index.html
ServerRoot /usr/local/apache


ServerName xxxxx.com
ServerAlias www.xxxxx.com
DocumentRoot /home/xxxx/public_html
ServerAdmin webmaster@xxxx.com
Timeout 7000
## User xxxx # Needed for Cpanel::ApacheConf

suPHP_UserGroup xxxx xxxx


php4_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/ph p:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp"



php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/ph p:/usr/local/php4/lib/php:/tmp"


php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp"


php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/ph p:/usr/local/php4/lib/php:/tmp"



SuexecUserGroup xxxxx xxxx

CustomLog /usr/local/apache/domlogs/xxxxx.com-bytes_log "%{%s}t %I
..\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/xxxxx.com combined
ScriptAlias /cgi-bin/ /home/xxxx/public_html/cgi-bin/


--0023545bd89c457c6d047e0305f5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,


I run a cpanel machine with the following version=
s:

family: Arial; font-size: 13px; border-collapse: collapse; ">cPanel 11.25.0=
-R42404


WHM 11.25.0 - X 3.9
CENTOS 4.7 i686
Apache 2.0.63
pan class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 13px=
; border-collapse: collapse; ">
tyle-span" style=3D"font-family: Arial; font-size: 13px; border-collapse: c=
ollapse; ">


ial; font-size: 13px; border-collapse: collapse; ">We have a client that is=
running a real estate website using a product from Transparent Rets that c=
onnects and downloads a MLS (real estate) feed to display on their site. pan>


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">Transparent Rets has recommended we set the Apache timeou=
t on this site to 10000 seconds.


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">Needless to say I do not want to set this for every site,=
so I wanted to try to use a virtual host directive for this.


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">I found a few automatically generated virtual host direct=
ives on my server in the /etc/httpd/conf/sites directory so I copied one of=
those and added the time out.


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">First, if anyone could review my attempt to make a virtua=
l host directive I would *GREATLY* appreciate it.


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">Second, is there any way to verify the timeout has been i=
ncreased for this site, and only this site?


e: 13px; border-collapse: collapse; ">
Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border-coll=
apse: collapse; ">


ial; font-size: 13px; border-collapse: collapse; ">Here is the contents of =
the file. =A0I have used xxxx's for privacy
s=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 13px; border=
-collapse: collapse; ">


ial; font-size: 13px; border-collapse: collapse; ">
pan class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 13px=
; border-collapse: collapse; ">


ial; font-size: 13px; border-collapse: collapse; ">
pan class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 13px=
; border-collapse: collapse; ">


ial; font-size: 13px; border-collapse: collapse; ">
DocumentRoot /home/=
xxxx/public_html
Port 80
DirectoryIndex index.htm index=
..html


ServerRoot /usr/local/apache

<VirtualHost =
>
=
   =A0ServerName
=
   =A0ServerAlias iv>

   =A0DocumentRoot /home/xxxx/public_html
   =A0Serv=
erAdmin
<=
div>   =A0Timeout 7000
   =A0## User xxxx # Needed for Cp=
anel::ApacheConf


   =A0<IfModule mod_suphp.c>
   =A0 =A0 =A0suP=
HP_UserGroup xxxx xxxx
   =A0</IfModule>
=A0=
=A0 =A0<IfModule concurrent_php.c>
   =A0 =A0 =A0php4_a=
dmin_value open_basedir "/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/us=
r/local/lib/php:/usr/local/php4/lib/php:/tmp"


   =A0 =A0 =A0php5_admin_value open_basedir "/home/xxxx:/usr/=
lib/php:/usr/local/lib/php:/tmp"
   =A0</IfModule>=
   =A0<IfModule !concurrent_php.c>
   =
=A0 =A0 =A0<IfModule mod_php4.c>


   =A0 =A0 =A0 =A0 =A0php_admin_value open_basedir "/home/xxx=
x:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/loc al/php4/lib/php=
:/tmp"
   =A0 =A0 =A0</IfModule>
   =
=A0 =A0 =A0<IfModule mod_php5.c>


   =A0 =A0 =A0 =A0 =A0php_admin_value open_basedir "/home/xxx=
x:/usr/lib/php:/usr/local/lib/php:/tmp"
   =A0 =A0 =A0&l=
t;/IfModule>
   =A0 =A0 =A0<IfModule sapi_apache2.c>=
   =A0 =A0 =A0 =A0 =A0php_admin_value open_basedir "/ho=
me/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/u sr/local/php4/l=
ib/php:/tmp"


   =A0 =A0 =A0</IfModule>
   =A0</IfModule&=
gt;
   =A0<IfModule !mod_disable_suexec.c>
=
   =A0 =A0 =A0SuexecUserGroup xxxxx xxxx=A0
   =A0</If=
Module>
   =A0CustomLog /usr/local/apache/domlogs/xxxxx.co=
m-bytes_log "%{%s}t %I .\n%{%s}t %O ."


   =A0CustomLog /usr/local/apache/domlogs/ com">xxxxx.com combined
   =A0ScriptAlias /cgi-bin/ /home=
/xxxx/public_html/cgi-bin/
</VirtualHost>

iv>



--0023545bd89c457c6d047e0305f5--

Re: virtual hosts help please

am 28.01.2010 17:24:48 von Justin Pasher

I didn't see any replies, so I figured I say something...

Chris Hall wrote:
> Hello,
>
> I run a cpanel machine with the following versions:
>
> cPanel 11.25.0-R42404
> WHM 11.25.0 - X 3.9
> CENTOS 4.7 i686
> Apache 2.0.63
>
>
> We have a client that is running a real estate website using a product
> from Transparent Rets that connects and downloads a MLS (real estate)
> feed to display on their site.
>
> Transparent Rets has recommended we set the Apache timeout on this
> site to 10000 seconds.

That seems ridiculously high. Almost 3 hours for a timeout? Is this a
third party that is connecting to YOUR Apache server and doing a GET or
POST on a page? Is it really expected to potentially take that long to
complete the request? Is there some sort of extreme latency or
unreliability with the connections between the boxes? If there is active
data being transmitted between the two system, then it essentially
"resets" the timeout counter, so this setting indicates a 10000 for the
following (from the docs):

1. The total amount of time it takes to receive a GET request.
2. The amount of time between receipt of TCP packets on a POST or PUT
request.
3. The amount of time between ACKs on transmissions of TCP packets in
responses.

> I found a few automatically generated virtual host directives on my
> server in the /etc/httpd/conf/sites directory so I copied one of those
> and added the time out.

You should really determine which ones are actually being used by the
site in question instead of just adding things anywhere you see a
VirtualHost container.

> First, if anyone could review my attempt to make a virtual host
> directive I would *GREATLY* appreciate it.
>
> Second, is there any way to verify the timeout has been increased for
> this site, and only this site?

The docs state that the Timeout directive can be set within a
VirtualHost container, so that should work fine. There is no way that I
know of to verify it was set, but if the directive is within a
VirtualHost container, you should be good.

--
Justin Pasher

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org